﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using WMS.ClientService.Dto;

namespace WMS.ClientService
{
    public interface IClientServices : IApplicationService
    {
        /// <summary>
        /// 获取客户数据
        /// </summary>
        /// <param name="chineseName"></param>
        /// <param name="contractNumber"></param>
        /// <param name="code"></param>
        /// <param name="index"></param>
        /// <param name="limit"></param>
        /// <returns></returns>
        Task<PagedResult> GetCilentsdata(string? chineseName, string? contractNumber, string? code, int index = 1, int limit = 10);

        /// <summary>
        /// 添加客户信息
        /// </summary>
        /// <param name="addclientdto"></param>
        /// <returns></returns>
        Task<int> AddClients(Addclientdto addclientdto);

        /// <summary>
        /// 删除客户信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
          Task<int> DeleteCilents(int id);

        /// <summary>
        /// 通过id获取客户信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<SearchClientdto> SelectByidClient(int id);

        /// <summary>
        /// 修改客户信息
        /// </summary>
        /// <param name="searchclientdto"></param>
        /// <returns></returns>
          Task<int> UpdateClients(SearchClientdto searchclientdto);
    }
}
